using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThuySan.Bussiness
{
	[Serializable]
	[Table("[dbo].[CategoryProperty]")]
	public partial class CategoryProperty
	{

		#region Properties

		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[Required]
		[Column("CategoryPropertyId")]
		public System.Int32 CategoryPropertyId { get; set; }

		[Column("CategoryId")]
		public System.Int32? CategoryId { get; set; }

		[Column("PropertyId")]
		public System.Int32? PropertyId { get; set; }

		[Column("Priority")]
		public System.Int32? Priority { get; set; }

		#endregion

		#region Navigation

		[ForeignKey("CategoryId")]
		public virtual Category Category { get; set; }
		[ForeignKey("PropertyId")]
		public virtual Property Property { get; set; }

		#endregion

	}
}
